<#import "/freemarker/modeltype.ftl" as mt>
<div class="dataTables_title">
	<div class="dataTables_title_left">按钮注释</div>
	<div class="dataTables_title_right">
		<a class="btn btn-danger" href="#"><i class="icon-lock"></i> 屏蔽</a>
		<a class="btn btn-warning" href="#"><i class="icon-unlock"></i> 解除屏蔽</a>
		<a class="btn btn-success" href="#"><i class="icon-edit"></i> 编辑</a>
	</div>
</div>
<table class="table table-bordered animate2 fadeInUp">
	<thead>
		<tr>
			<th>名称</th>
			<th>所属机构</th>
			<th>是否屏蔽</th>
			<th>创建人</th>
			<th>创建时间</th>
			<th style="width: 80px;text-align: center;">操作</th>
		</tr>
	</thead>
	<tbody>
	<#list pageBean.resultList as course>
		<tr class="ui-widget-content">
			<td>${course.name}</td>
			<td>${course.on}</td>
			<td><@mt.YesOrNo value=((course.deleted)!false) r=false /></td>
			<td>${course.cn}</td>
			<td>${course.ct?string('yyyy-MM-dd HH:mm')}</td>
			<td style="text-align: center;">
				<div id="tttttt" class="btn-group">
					<#if !course.deleted>
					<a href="javascript:;" onclick="javascript: shield_course('${course.code}', '${course.name}');return false;" data-toggle="tooltip" title="屏蔽" class="btn btn-xs btn-danger"><i class="icon-lock"></i></a>
					<#else>
					<a href="javascript:;" onclick="javascript: unshield_course('${course.code}', '${course.name}');return false;" data-toggle="tooltip" title="解除屏蔽" class="btn btn-xs btn-warning"><i class="icon-unlock"></i></a>
					</#if>
					<a href="javascript:;" onclick="javascript: sys_load_handle('course-edit_${course.code}');return false;" data-toggle="tooltip" title="编辑" class="btn btn-xs btn-success"><i class="icon-edit"></i></a>
				</div>
			</td>
		</tr>
	</#list>
	</tbody>
</table>
<#import "/freemarker/pagination.ftl" as p>
<@p.pagination pageBean 'query_course'/>